package com.four.service.impl;

import com.four.dao.UserMapper;
import com.four.pojo.User;
import com.four.service.IUserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Qualifier;
import org.springframework.stereotype.Service;

/**
 * @author 王森
 * @create 2021-10-29 22:17
 */

@Service("userServiceImpl")
public class UserServiceImpl implements IUserService {

    @Autowired
    @Qualifier("userMapper")
    private UserMapper userMapper;


    @Override
    public User login(User user) {
        return userMapper.login(user);
    }

    @Override
    public int addLogin(User user) {
        return userMapper.addLogin(user);
    }

    @Override
    public User showOne(Integer id) {
        return userMapper.showOne(id);
    }

}
